package cn.taofuxn.sale.bean;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ProjectName : GeekSaleSystem
 * PackageName : cn.taofuxn.sale.bean
 * Created by Wong
 * Date: 2018/3/15
 * Time: 16:24
 */

@Entity
@Table(name = "tb_sale_user")
public class TbConsumer {
	
	@Id
	@GenericGenerator(name = "IdGenerater",strategy = "cn.taofuxn.sale.util.IdGenerater" ,parameters = {@Parameter(name = "prefix",value = "consumer")})
	@GeneratedValue(generator = "IdGenerater")
	private String id;
	private String name;
	private String address;
	private String phone;
	private String note;
	
	public String getNote() {
		return note;
	}
	
	public void setNote(final String vNote) {
		note = vNote;
	}
	
	public String getId() {
		return id;
	}
	
	public void setId(final String vId) {
		id = vId;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(final String vName) {
		name = vName;
	}
	
	public String getAddress() {
		return address;
	}
	
	public void setAddress(final String vAddress) {
		address = vAddress;
	}
	
	public String getPhone() {
		return phone;
	}
	
	public void setPhone(final String vPhone) {
		phone = vPhone;
	}
}
